package com.first.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SubjectEntity {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "学科名")
    private String subjectName;

    @ApiModelProperty(value = "学科信息")
    private String subjectInfo;

    @ApiModelProperty(value = "学分")
    private Integer credit;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getSubjectInfo() {
        return subjectInfo;
    }

    public void setSubjectInfo(String subjectInfo) {
        this.subjectInfo = subjectInfo;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    @Override
    public String toString() {
        return "SubjectEntity{" +
                "id=" + id +
                ", subjectName='" + subjectName + '\'' +
                ", subjectInfo='" + subjectInfo + '\'' +
                ", credit=" + credit +
                '}';
    }

    public SubjectEntity(Integer id, String subjectName, String subjectInfo, Integer credit) {
        this.id = id;
        this.subjectName = subjectName;
        this.subjectInfo = subjectInfo;
        this.credit = credit;
    }

    public SubjectEntity(String subjectName, String subjectInfo, Integer credit) {
        this.subjectName = subjectName;
        this.subjectInfo = subjectInfo;
        this.credit = credit;
    }
}
